const { createWebAPIRequest } = require('../utils/util')

module.exports = class TopList {
  static async getList(cookie, id) {
    const data = {
      csrf_token: '',
      id,
      n: 1000
    }
    const result = await createWebAPIRequest(
      'music.163.com',
      '/weapi/v3/playlist/detail',
      'POST',
      data,
      cookie
    )
    return result
  }
}
